//定义一个狗类
class Dog{
    public String name;
    public String colour;
    public String sex;

    public void barks(){
        System.out.println(name+"汪汪叫");
    }
    public void wos(){
        System.out.println(name+"摇尾巴");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.name="王牛逼";
        dog.colour="黄色";
        dog.barks();
        dog.wos();
    }
}
